---
title: "SQL-VP-006: Retrieve policy address by location sequence number"
summary: Retrieves a policy address by location sequence number via the Oracle view-policy package.
status: draft
owner: SAIF Claims BOF team
last_reviewed: 2026-08-21
library: SAIF.Business.View.Policy
reference_type: embedded
---

# SQL-VP-006 Retrieve policy address by location sequence number

An alternate, ad hoc retrieval path for `clsPolicyAddress` used when the caller has a location
sequence number rather than a policy number/address-type pair.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-VP-006 |
| **Operation type** | Read |
| **Execution method** | Stored procedure |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | StoredProcedure |
| **Business object** | `clsPolicyAddress` |
| **Criteria property** | `RetrieveAddressByLocationSeqNum` (ad hoc method) |
| **Lifecycle method** | ad hoc method |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `inLocationSeqNum` | Input | Decimal | N/A | Location sequence number to look up the address for. |
| `recordset` | Output (Cursor) | REF CURSOR | N/A | Result set containing the address record. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| *(not directly visible — encapsulated in procedure body)* | SELECT | N/A |

## Sample SQL

```sql
BEGIN
  pk72846_view_policy.getPolicyAddressByLocSeqNum(
    inLocationSeqNum => :inLocationSeqNum,
    recordset        => :recordset
  );
END;
```

*Call signature reconstructed from `DataRequest.SQLStatement`/`AddParm`/`AddCursorParm` calls; the
procedure body resides in the Oracle database and was not retrieved this run.*

> **Note:** Statements marked with `*` were inferred from code structure, naming
> conventions, or contextual evidence where direct confirmation was not available
> in source artifacts. Statements marked with `**` could not be confirmed; treat
> as unknown until verified.

## Sources
- `SAIF.Business.View.Policy\clsPolicyAddress.vb`
